<!DOCTYPE html>
<html class="layui-bg-white">
<head th:include="include :: header"></head>
<body>
<div class="layui-form" style="padding:20px;">
    <input id="id" name="id" th:value="${userSubject.id}" type="hidden">
    <input id="clearField" name="clearField" value="clearField" type="hidden">
    <input id="version" name="version" th:value="${userSubject.version}" type="hidden">
    <div class="layui-form-item">
        <label class="layui-form-label"><span class="required">*</span>用户ID：</label>
        <div class="layui-input-block">
            <select lay-filter="userId" id="userId" name="userId" class="form-control chosen-select" lay-search lay-verify="required">
                <option value="">--请选择--</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">科目ID：</label>
        <div class="layui-input-block">
            <select lay-filter="subjectId" id="subjectId" name="subjectId" class="form-control chosen-select" lay-search>
                <option value="">--请选择--</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">科目名称：</label>
        <div class="layui-input-block">
            <input type="text" id="subjectName" name="subjectName" placeholder="请输入科目名称" autocomplete="off" class="layui-input" th:value="${userSubject.subjectName}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">正确率：</label>
        <div class="layui-input-block">
            <input type="text" id="accuracyRate" name="accuracyRate" placeholder="请输入正确率" autocomplete="off" class="layui-input" th:value="${userSubject.accuracyRate}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">做题总数：</label>
        <div class="layui-input-block">
            <input type="text" id="totalQuestion" name="totalQuestion" placeholder="请输入做题总数" autocomplete="off" class="layui-input" th:value="${userSubject.totalQuestion}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">收藏总数：</label>
        <div class="layui-input-block">
            <input type="text" id="totalCollect" name="totalCollect" placeholder="请输入收藏总数" autocomplete="off" class="layui-input" th:value="${userSubject.totalCollect}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">错题总数：</label>
        <div class="layui-input-block">
            <input type="text" id="totalWrong" name="totalWrong" placeholder="请输入错题总数" autocomplete="off" class="layui-input" th:value="${userSubject.totalWrong}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否开启答对2次自动移除错题(0-否，1-是)：</label>
        <div class="layui-input-block">
            <input type="text" id="autoRemove" name="autoRemove" placeholder="请输入是否开启答对2次自动移除错题(0-否，1-是)" autocomplete="off" class="layui-input" th:value="${userSubject.autoRemove}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否为当前选择(0-否，1-是)：</label>
        <div class="layui-input-block">
            <input type="text" id="currentChoice" name="currentChoice" placeholder="请输入是否为当前选择(0-否，1-是)" autocomplete="off" class="layui-input" th:value="${userSubject.currentChoice}">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-operate-submit" id="LAY-operate-submit" value="确认">
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript">
    layui.config({
        base: ctx + '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index'         //主入口模块
    }).use(['index', 'form'], function () {
        var $ = layui.$, form = layui.form;

        form.verify(commonJs.form.verify);
    })
</script>
</body>
</html>